package org.theSeed.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.theSeed.mybatis.contract.SeedMapper;
import org.theSeed.pojo.dto.SysResourceAndRoleCode;
import org.theSeed.pojo.po.SysResource;

import java.util.List;

/**
* @author Administrator
* @description 针对表【sys_menu】的数据库操作Mapper
* @createDate 2025-06-30 01:45:12
* @Entity org.theSeed.domain.SysResource
*/
public interface SysResourceMapper extends SeedMapper<SysResource> {
    List<SysResourceAndRoleCode> findResourceAndRoleCode();

    List<SysResourceAndRoleCode> findResourceAndRoleCodeByRoleId(@Param("roleId") String roleId);

    /**
     * 更具资源code查询关联的角色
     * @param resourceCode
     * @return
     */
    List<SysResourceAndRoleCode> findResourceRoleByResourceId(@Param("resourceId") String resourceId);
}




